package com.ztgf.shopping.models.service.audit;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.file.models.bo.FileInfoSaveBO;
import com.ztgf.shopping.models.bo.audit.AuditBO;
import com.ztgf.shopping.models.bo.audit.AuditImportPurchaseSaveBO;
import com.ztgf.shopping.models.bo.audit.AuditSaveBO;
import com.ztgf.shopping.models.bo.shop.ShopInfoAuditBO;
import com.ztgf.shopping.models.dto.audit.AuditDTO;
import com.ztgf.shopping.models.vo.audit.AuditTreeVO;
import com.ztgf.shopping.models.vo.audit.AuditVO;

import java.util.List;

public interface IAuditService extends IService<AuditDTO> {

    Result save(AuditSaveBO bo);
    Result save(AuditSaveBO bo,FileInfoSaveBO saveBO);

    boolean add(AuditDTO auditDTO);//新增审核记录

    boolean update(AuditDTO auditDTO);//更新审核记录

    Integer getNum(Integer type);//根据类型获取审核数量

    Integer getNum1(Integer type,Integer type1);//根据类型获取审核数量

    Integer getNumByTab(Integer type, Long shopId);//根据tab页类型获取审核数量

    Page<AuditVO> queryPageList(ShopInfoAuditBO bo);//审核列表

    Result<List<AuditTreeVO>> queryTreeList(Long id); //根基审核表ID 获取类目树

    Page<AuditVO> queryPageListNew(AuditBO bo);//审核列表

    Result<AuditVO> get(Long id);

    Result saveImportPurchase(AuditImportPurchaseSaveBO bo, byte[] input, FileInfoSaveBO saveBO); //导入询价单
}
